package br.com.minhascontas.controller;

import java.util.List;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import br.com.example.minhascontas.R;

public class ListViewMenuInicial extends BaseAdapter{
	
	private Context context;
	private List<br.com.minhascontas.model.Menu> clsMenu;
	
	public ListViewMenuInicial(Context context, List<br.com.minhascontas.model.Menu> clsMenu){
		this.context = context;
		this.clsMenu = clsMenu;

	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Object getItem(int arg0) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public long getItemId(int position) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		
		LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		View v = inflater.inflate(R.layout.listview_menu_inicial, null);
		
		
		TextView txtLink = (TextView) v.findViewById(R.id.txtLink);
		

		for(int i = 0; i < clsMenu.size(); i++){
			txtLink.setText((CharSequence) clsMenu.get(i));
		}
		
		
		return v;
	}

}
